str = "Hello World ."

print(str)

for i in str:
    print(i, end=" ")

print()

print(str[2])  # prints character at index 2
print(str[2:5])  # prints characters from 2 to 4
print(str[2:])  # prints characters from 2 to end
print(str[:5])  # prints characters from 0 to 4
print(str[::2])  # prints every second character
print(str[::-1])  # prints the string in reverse order

print(len(str))  # prints the length of the string

str = str.replace(".", "are you busy?")

print(str)

array = str.split(" ")

print(array)

for s in array:
    print(s, end=",")

print()

str = str.strip("are")

print(str)
